﻿using System;
using System.Resources;
using System.Globalization;
using System.Windows.Forms;

namespace Ue.Components.FileResources
{
    public class ResxResourceManager : FileResourceManager
    {
        public ResxResourceManager(string resourceDirectory, string resourceFileBaseName)
            : base(resourceDirectory, resourceFileBaseName, ".resx") { }

        protected override ResourceSet InternalGetResourceSet(CultureInfo culture, bool createIfNotExists, bool tryParents)
        {
            return new ResXResourceSet(this.GetResourceFileName(culture));
        }
    }
}
